package com.chasing.baseframe.db.entity;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class FileDownloadCacheEntity {
    @PrimaryKey()
    private @NonNull String mUrl = "";
    private String mFilePath;
    private long mFileTotalLength;
    private boolean isSuccess;

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    @NonNull
    public String getUrl() {
        return mUrl;
    }

    public void setUrl(@NonNull String url) {
        mUrl = url;
    }

    public String getFilePath() {
        return mFilePath;
    }

    public void setFilePath(String filePath) {
        mFilePath = filePath;
    }

    public long getFileTotalLength() {
        return mFileTotalLength;
    }

    public void setFileTotalLength(long fileTotalLength) {
        mFileTotalLength = fileTotalLength;
    }
}
